home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Macintosh Demo Applications CD
/
Apple-MacintoshDemoApplicationsCD-1.0-1992.iso
/
More Information
/
QuickMail
/
Installer Resources
/
Scripts
/
INET.TELENET.v1.52 (2400)
< prev
next >
Wrap
Text File
|
1992-03-20
|
4KB
|
185 lines
* INET Script, for QuickMail™
* © 1988,1989 INET Company of America
*
* Version: 1.52
*
* Modification Date: 4/10/89 for v1.52
* Made Minor Changes to IN procedure for 2400 baud TeleNet Access.
* Dave Loverink - CE Software, Inc.
*
*
* NOTE: THIS SCRIPT ONLY WORKS AT 2400 BAUD
*
*
* Modification date: 4/10/89 for v1.5
* added ^J to all "DUMP" commands to slow down the rate at
* which the script dumps the ASCII text into Messaging
* added the "D" before the carriage returns to Telenet to ensure
* that Telenet knows we're coming in as 8 data bits and no parity
*
* This is a script for use with the CE Software QuickMail Telecom
* Bridge. This script will log onto INET and exchange messages
* with regular INET IDs and INET IDs associated with other QuickMail
* Servers.
*
* The INET ID for this Telecom Mail Center must be unique - not used
* by other individuals or Telecom Mail Centers. The "address" used
* by the message creator (or linked to a recipient name) must be
* another INET ID. The script used by a receiving QuickMail Telecom
* Mail Center must be identical to this in order that messages get
* routed to the correct recipient; the send and receive routines in this
* script are complementary. Regular INET users wishing to send
* messages to a recipient on a QuickMail Server must "COMPOSE" a
* message to that QuickMail Server INET ID and place the recipient's
* name on the INET Message "SUBJECT" line in the following fashion:
*
* To: INET.CHICAGO.QM
* CC:
* Subject: This is a mail message Attn:John Doe
*
* There should be no space between the "Attn:" and the beginning of
* the recipient's QuickMail name.
*
* Any questions regarding the use of this script in accessing the INET
* electronic mail network should be addressed to INET's Chicago sales
* office at the above QuickMail address or (312) 245-5095.
*
* This routine is called to log us into INET Messaging
*
:IN
OOPS 60,FAILURE
ALERT 4,FAILURE,recognized.
PAUSE 2
TYPE @
PAUSE 2
TYPE D^M
WAIT TERMINAL=
TYPE ^M
WAIT @
TYPE C INET^M
WAIT User-id:
* TYPE «LOGID» ASCII80^M
TYPE «LOGID» ^M
WAIT Password:
TYPE «PASSWORD»^M
WAIT proceed:
TYPE ^M
WAIT command:
TYPE Messaging^M
NOMAIL No new mail.
WAIT Command?
SUCCESS
*
* This logs us off INET Messaging
*
:BYE
OOPS 60,FAILURE
TYPE bye^M
WAIT command:
TYPE bye^M
SUCCESS
*
* This is called to send all of the mail destined for remote
* QM Mail Centers. Those QM Servers will have an INET ID for
* the Telecom Bridge
*
:SEND
OOPS 60,FAILURE
ALERT 3,S2,hold:
ALERT 4,S3,"TO"
ALERT 5,FAILURE,POSSIBLE DATA LOSS
TYPE Compose^M
WAIT To:
TYPE «ADDRESS»^M
WAIT CC:
TYPE ^M
WAIT Subject:
TYPE «TOPIC» Attn:«NAME»^M
WAIT Text:
TYPE ^M
DUMP ^J
TYPE .^M
WAIT Send?
TYPE Y^M
WAIT Command?
SUCCESS
*
*
:XSEND
OOPS 60,FAILURE
ALERT 3,S2,hold:
ALERT 4,S3,"TO"
TYPE Compose^M
WAIT To:
TYPE «ADDRESS»^M
WAIT CC:
TYPE ^M
WAIT Subject:
TYPE «TOPIC» Attn:«NAME»^M
WAIT Text:
TYPE .Upload Binary xyz.xyz^M
WAIT cancel.
XMODEM UPLOAD, FAILURE
WAIT continue:
TYPE .^M
WAIT Send?
TYPE Y^M
WAIT Command?
SUCCESS
*
:S2
* This occurs when INET Messaging thinks the "ADDRESS" (INET ID)
* is invalid and prompts for "Correct, Omit, or Hold?". This script
* routine responds "Omit" which cancels the message in INET, but
* the QM server thinks it delivered the message without a hitch
TYPE O^M
FAILURE
*
:S3
ALERT 5,FAILURE,POSSIBLE DATA LOSS
TYPE Compose^M
WAIT IT?
TYPE Y^M
WAIT To:
TYPE «ADDRESS»^M
WAIT CC:
TYPE ^M
WAIT Subject:
TYPE «TOPIC» Attn:«NAME»^M
WAIT Text:
TYPE ^M
DUMP ^J
TYPE .^M
WAIT Send?
TYPE Y^M
WAIT Command?
SUCCESS
*
*
* This is called to receive mail. It is called continually
* for each piece of mail waiting in INET. If a binary message
* is detected, XMODEM binary download is set up.
*
:RECEIVE
OOPS 60,FAILURE
TYPE R^M
*
:R1
ALERT 1,FAILURE,Command?
ALERT 2,R2,receive it
BUFFER Action?
RECEIVE Subj:,Attn:,From:,,
TYPE ^M
GOTO R1
*
:R2
WAIT Action?
TYPE DOWNLOAD BINARY^M
WAIT to cancel.
XMODEM DOWNLOAD,FAILURE
MAILFILE Subj:,Attn:,From:,,
WAIT Action?
TYPE ^M
GOTO R1
*
*